//
// C++ Interface: threadstablewidget
//
// Description: 
//
//
// Author: Christophe Vandeplas <christophe@vandeplas.com>, (C) 2006
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifdef USE_LOADGEN_GUI


#ifndef THREADSTABLEWIDGET_H
#define THREADSTABLEWIDGET_H

#include <qtablewidget.h>

#include <QString>
#include <QMutex>

/**
@author Christophe Vandeplas
*/
class ThreadsTableWidget : public QTableWidget
{
Q_OBJECT
    public:
    ThreadsTableWidget(QWidget *parent = 0);
    ~ThreadsTableWidget();
    void cleanUpTable();

    public slots:
        void addNewThreadToTable( int nomOfRepeats, QString scenefile, bool fitToContent=false );
        void updateThreadOfTable( int number, int loop, QString state);
        void cellClicked ( int row, int col );

    signals:
        void updateListOfElements ( const int , const bool);
        void changeAudioThread (const int);

    private:
        int _lastAddedItemId;


};

#endif // THREADSTABLEWIDGET_H

#endif // USE_LOADGEN_GUI
